<include file="public@header" />
</head>
<body>
	<div class="wrap js-check-wrap">
		<ul class="nav nav-tabs">
			<li class="active"><a href="{:url('user/index')}">代理商</a></li>
			<li><a href="{:url('user/add')}">代理商添加</a></li>
		</ul>
        <form class="well form-inline margin-top-20" method="post" action="{:url('User/index')}">
            手机号:
            <input type="text" class="form-control" name="mobile" style="width: 120px;" value="{:input('request.mobile/s','')}" placeholder="请输入手机号">
            推荐码:
            <input type="text" class="form-control" name="only_incode" style="width: 120px;" value="{:input('request.only_incode/s','')}" placeholder="推荐码">
            <input type="submit" class="btn btn-primary" value="搜索" />
            <a class="btn btn-danger" href="{:url('User/index')}">清空</a>
        </form>
		<table class="table table-hover table-bordered">
			<thead>
				<tr>
					<th width="50">ID</th>
					<th>姓名</th>
					<th>身份证号</th>
					<th>手机号</th>
					<th>代理商平台名称</th>
					<th>等级</th>
					<th>余额</th>
					<th>推荐码</th>
					<th>推荐者推荐码</th>
					<th>操作</th>
				</tr>
			</thead>
			<tbody>
			<volist name="result" id="vo">
				<tr>
					<td>{$vo.id}</td>
					<td>{$vo.real_name}</td>
					<td>{$vo.id_card}</td>
					<td>{$vo.mobile}</td>
					<td>{$vo.brand_name}</td>
					<td>{$vo.agr_level}</td>
					<td>{$vo.money}</td>
					<td>{$vo.only_incode}</td>
					<td>{$vo.incode}</td>
					<td>
						<a href="{:url('User/dekeys',array('id'=>$vo.user_guid))}">激活码</a>
						<a href="{:url('User/buydekey',array('id'=>$vo.user_guid))}">激活码购买</a>
						<a href="{:url('User/balance',array('id'=>$vo.user_guid))}">资金记录</a>
						<a href="{:url('User/del',array('id'=>$vo.user_guid))}">删除</a>
					</td>
				</tr>
			</volist>
			</tbody>
		</table>
		<div class="pagination">{$page|default=''}</div>
	</div>
	<script src="__STATIC__/js/admin.js"></script>
</body>
</html>